[16.0][ADD] pricelist_price_base_custom: add module#3039
[16.0][ADD] pricelist_price_base_custom: add module#3039OCA-git-bot merged 1 commit intoOCA:16.0from
Conversation
|
This is already implemented in https://github.com/OCA/product-attribute/tree/15.0/product_multi_price |
|
This PR has the |
|
This PR has the |
aeb888b to
34d3ab4
Compare
|
Hey dear @OCA/crm-sales-marketing-maintainers ! What's a great day to merge this small but nice PR. Isn't it? 😄 |
| passed in context | ||
| """ | ||
| if self.base == "custom_value": | ||
| return ( |
There was a problem hiding this comment.
IMHO, this is not correct.
A price from a context value is always a bad practice. Don't you have another mean to do so ?
There was a problem hiding this comment.
IMHO, this is not correct.
A price from a context value is always a bad practice. Don't you have another mean to do so ?
hi @rousseldenis, thank you for the feedback! yup I share the same concerns. However this was the less intrusive to achieve the objective.
Otherwise there would be much more code because of the function param override.
da392d7 to
1c84b46
Compare
|
Hi @rousseldenis , thank you once again for your assistance! I've applied your suggestions, would appreciate the final (hope so 😄 ) review. |
|
ok, @rousseldenis please check again 😆 |
b92defd to
19f2087
Compare
This is a technical module that makes possible to use custom base_price (e.g. from external sources) in your product prices computation
19f2087 to
4129115
Compare
@dmitriypaulov @ivs-cetmix Have you checked this ? |
@rousseldenis yes, I did. The difference between these modules is that our module is more technical and it's designed to be a part of external flows where you need to calculate a custom price from code. |
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 3a51486. Thanks a lot for contributing to OCA. ❤️ |
This is a technical module that makes possible to use custom base_price (e.g. from external sources) in your product prices computation